﻿using System;

namespace OneWorks.Web.Common.BaiDu.Place
{
    public class BaiduPlaceDetailParams : BaiduPlaceParams
    {
        /// <summary>
        /// poi的uid
        /// </summary>
        public string Uid;

        /// <summary>
        /// 检索结果详细程度。取值为1 或空，则返回基本信息；取值为2，返回检索POI详细信息
        /// </summary>
        public int Scope;

        public override string ToString()
        {
            if (string.IsNullOrWhiteSpace(Uid))
                throw new ArgumentException(BaiduErrorMessages.LackParam);

            string s = "";

            s += "&uid=" + Uid;

            s += "&scope=" + Scope;

            return base.ToString() + s;
        }
    }
}
